SetCSequenceDataRateParams
TheSetCSequenceDataRateParams
function allows your application to set parameters in the data rate parameters structure, which communicates information to compressors that can constrain compressed data in a particular sequence to a specific data rate.
pascal OSErr SetCSequenceDataRateParams (ImageSequence seqID, DataRateParamsPtr params);
seqID
- Contains the unique sequence identifier that was returned by the
CompressSequenceBegin
function (described on page 3-100).params
- Points to the data rate parameters structure to be associated with the sequence identifier specified in the
seqID
parameter.DESCRIPTION
If your application is keeping track of data overrun, you should call theSetCSequenceDataRateParams
function before each use of theCompressSequenceFrame
function (described on page 3-105). If not, you only need to callSetCSequenceDataRateParams
before the first use ofCompressSequenceFrame
, with thedataOverrun
parameter of the data rate parameters structure set to 0. In this case, it is assumed that the frame duration is valid for all frames. Setting thedataRate
field in the data rate parameters structure to 0 is the same as not performing data rate constraint.RESULT CODES
noErr 0 No error paramErr -50 Invalid parameter specified